//
//  GuestInfoCell.m
//  QRMaster
//
//  Created by myApple on 16/4/28.
//  Copyright © 2016年 myApple. All rights reserved.
//

#import "GuestInfoCell.h"

@interface GuestInfoCell()
{
    UILabel * titleLabel;
    UILabel * subInfoLabel;
}

@end

@implementation GuestInfoCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        //        btnToTimeId = [[NSMutableArray alloc]init];
        [self prepareView];
    }
    return self;
}

-(void)prepareView
{
    float x = 22;
    float y = (56 - 20)/2.0;
    float width = UI_SCREEN_WIDTH / 2.0;
    float height = 20;
    
    titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    titleLabel.textColor = UIColorFromRGB(0x333333);
    titleLabel.font = [UIFont systemFontOfSize:16.0];
    [self.contentView addSubview:titleLabel];
    
    x = 94;
    width = UI_SCREEN_WIDTH - x - 22;
    height = 20;
    subInfoLabel = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    subInfoLabel.font = [UIFont systemFontOfSize:15.0];
    [self.contentView addSubview:subInfoLabel];
}


-(void)setTitleNameString:(NSString *)titleNameString
{
    _titleNameString = titleNameString;
    titleLabel.text = titleNameString;
}

-(void)setContentString:(NSString *)contentString
{
    _contentString = contentString;
    subInfoLabel.text = contentString;
}

-(void)setContentColor:(UIColor *)contentColor
{
    _contentColor = contentColor;
    subInfoLabel.textColor = contentColor;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
